#include "DirectorHelper.h"

#include "GameScene.h"

using namespace cocos2d;

void CDirectorHelper::EnterMainScene()
{
	cocos2d::CCScene *pNewScene = cocos2d::CCScene::node(); 
	CGameScene *pLayer = CGameScene::node();
	pNewScene->addChild(pLayer);
	cocos2d::CCScene *pCurScene = cocos2d::CCDirector::sharedDirector()->getRunningScene();
	if(NULL == pCurScene)
	{
		cocos2d::CCDirector::sharedDirector()->runWithScene(pNewScene);
	}
	else
	{
		cocos2d::CCDirector::sharedDirector()->replaceScene(pNewScene);
	}
}